package com.cloud.model;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document
public class Sku implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1115593425069549681L;
	@Id
	private String id;
	private String name;
	private String code;

	private int inx; // 知识分类排序位置

	private Date createtime;
	private String creater;
	private String username;

	private String description;// 分类备注描述信息

	private Date updatetime;
	private String waresid; // 商品ID
	private String pmethod; // 购买方式

	private String status; // 状态，启用，禁用

	private boolean defaultsku;// 默认使用

	private int price; // 价格
	private int stock; // 库存
	private int sku; // SKU销量
	private String orgi;
}
